if (ERPObj.status == "basic_loaded")
{
	//alert(ERPObj.strSection+" "+ERPObj.strFunction);
	
	$("div.menu").children("div").each(
		function(i)
		{
			$(this).mouseover(
				function()
				{
					$(this).css('cursor' , 'pointer');
				}
			);
			
			$(this).click(
				function()
				{
					$("div.menu").children("div").removeClass('cssSelected');
										
					strSection = ($(this).attr('class'));
					//alert(strSection);
					ERPObj.loadItem( strSection );
					$(this).addClass('cssSelected');
				}
			);
		}
	);	
	
	$("div.header").children("div").each(
		function(i)
		{
			$(this).children("a").click(
				function()
				{
					strSection = ($(this).attr('href').substr(1));
					ERPObj.loadItem( strSection );
				}
			);
			
		}
	);	
	
	$("div.content").append("<div class='cssContentPanel' id='masterpanel'></div>");
	
	ERPObj.status = "normal";
	ERPObj.loadItem( "headertext" );
	ERPObj.loadItem( ERPObj.strSection );
}